#!/bin/bash

# 想要启动的target
target=$1

config_file=config/config.${target}.lua
if [ -z ${target} ]; then
    config_file=config/config.lua
fi

if [ ! -f ${config_file} ]; then
    echo "config file ${config_file} not exist"
    exit 1
fi

./skynet/skynet ${config_file}